function selectAll(itemName)
{
	var item;
    eval("item = document.form1."+itemName);
    if (item.length == undefined) {
        item.checked=true;
    } else {        
        for (var i=0; i<item.length; i++)
        item[i].checked = true;
    }
}
function deSelect(itemName)
{
	var item;
	eval("item = document.form1."+itemName);
    if (item.length == undefined) {
        item.checked=false;
    } else {        
        for (var i=0; i<item.length; i++)
        item[i].checked = false;
    }
}